package com.nmsl.registration.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.registration.mapper.skxPhysicalInfoMapper;
import com.nmsl.registration.domain.skxPhysicalInfo;
import com.nmsl.registration.service.IskxPhysicalInfoService;

/**
 * 体格信息Service业务层处理
 * 
 * @author skx
 * @date 2025-02-24
 */
@Service
public class skxPhysicalInfoServiceImpl implements IskxPhysicalInfoService 
{
    @Autowired
    private skxPhysicalInfoMapper skxPhysicalInfoMapper;

    /**
     * 查询体格信息
     * 
     * @param visitRecordId 体格信息主键
     * @return 体格信息
     */
    @Override
    public skxPhysicalInfo selectskxPhysicalInfoByPhysicalInfoId(Long visitRecordId)
    {
        return skxPhysicalInfoMapper.selectskxPhysicalInfoByPhysicalInfoId(visitRecordId);
    }

    /**
     * 查询体格信息列表
     * 
     * @param skxPhysicalInfo 体格信息
     * @return 体格信息
     */
    @Override
    public List<skxPhysicalInfo> selectskxPhysicalInfoList(skxPhysicalInfo skxPhysicalInfo)
    {
        return skxPhysicalInfoMapper.selectskxPhysicalInfoList(skxPhysicalInfo);
    }

    /**
     * 新增体格信息
     * 
     * @param skxPhysicalInfo 体格信息
     * @return 结果
     */
    @Override
    public int insertskxPhysicalInfo(skxPhysicalInfo skxPhysicalInfo)
    {
        return skxPhysicalInfoMapper.insertskxPhysicalInfo(skxPhysicalInfo);
    }

    /**
     * 修改体格信息
     * 
     * @param skxPhysicalInfo 体格信息
     * @return 结果
     */
    @Override
    public int updateskxPhysicalInfo(skxPhysicalInfo skxPhysicalInfo)
    {
        return skxPhysicalInfoMapper.updateskxPhysicalInfo(skxPhysicalInfo);
    }

    /**
     * 批量删除体格信息
     * 
     * @param physicalInfoIds 需要删除的体格信息主键
     * @return 结果
     */
    @Override
    public int deleteskxPhysicalInfoByPhysicalInfoIds(Long[] physicalInfoIds)
    {
        return skxPhysicalInfoMapper.deleteskxPhysicalInfoByPhysicalInfoIds(physicalInfoIds);
    }

    /**
     * 删除体格信息信息
     * 
     * @param physicalInfoId 体格信息主键
     * @return 结果
     */
    @Override
    public int deleteskxPhysicalInfoByPhysicalInfoId(Long physicalInfoId)
    {
        return skxPhysicalInfoMapper.deleteskxPhysicalInfoByPhysicalInfoId(physicalInfoId);
    }
}
